/*
 * EscapeSeq.cpp
 *
 *  Created on: Jan 29, 2013
 *      Author: w1084063
 */

#include <unistd.h>
#include <iostream>
using namespace std;

int main(void) {
	cout << "Escape Sequences:" << endl;
	cout << "Wait 2 seconds to see what \\n does. " << flush;
	sleep( 2 );
	cout << "\n" << "We got a new line" << endl;

	cout << "Wait 2 seconds to see what \\r does. " << flush;
	sleep( 2 );
	cout << "\r" << "We got a new line" << endl;

	cout << "Wait 2 seconds to see what \\t does. " << flush;
	sleep( 2 );
	cout << "\t" << "We got a tab." << endl;

	cout << "Wait 2 seconds to see what \\a does. " << flush;
	sleep( 2 );
	cout << "\a" << "We got a bell" << endl;
}


